<?php
class Person{
    public $name;
    public function __construct()
    {
        echo "我是父亲结构函数";
    }
    public function show(){
        echo "我是父类";
    }
}
class Student extends Person{
    public function __construct()
    {
        Person::__construct();
        Person::__construct();
    }
    public function test()
    {
        $this->show();
    }
}
$stu=new Student();
$stu->name="zhangsan";
echo $stu->name;
// var_dump($stu);
$stu->test()
?>